<ion-view view-title="用户登录">
    <ion-content>
        <div class="text-center margin-top"><img class="logo" src="images/logo.png"></div>

        <form name="form">
            <div class="list list-inset">
                <label class="item item-input">
                    <input ng-model="user.tel" type="text" class="form-control input-lg" placeholder="手机号" required>
                </label>
                <label class="item item-input">
                    <input ng-model="user.pw" type="password" class="form-control input-lg" placeholder="密码" required>
                </label>
            </div>
            <div class="row">
                <div class="col">
                    <button class="button button-block button-positive" type="submit"  ng-click="login()" ng-disabled='form.$invalid'>登录</button>
                </div>
            </div>
            <div class="row">
                <div class="col" style="font-size: 14px;">
                    <a href="javascript:void(0);" ui-sref="find-password" style="color:#aaa;">找回密码</a>
                    <span style="float: right;">
                        <a href="javascript:void(0);" ui-sref="reg_step1" style="color:#aaa;">免费注册</a>
                    </span>

                </div>
            </div>
        </form>
    </ion-content>
</ion-view>
